import React from 'react'
import { Switch, Route, Redirect, Link } from 'react-router-dom'
import DataBaseManage from './DataBaseManage'
import DepartmentManage from './DepartmentManage'
import RoleManage from './RoleManage'
import ServiceManage from './ServiceManage'
import StaffManage from './StaffManage'

export default function SystemPrivileges() {
    return (
        <div>
            {/* <Tab /> */}
            {/* <Link to='/home/systemprivileges/departmentmanage'>部门管理</Link>
            <br></br>
            <Link to='/home/systemprivileges/rolemanage'>角色管理</Link>
            <br></br>
            <Link to='/home/systemprivileges/staffmanage'>员工管理</Link>
            <br></br>
            <Link to='/home/systemprivileges/servicemanage'>客服管理</Link>
            <br></br>
            <Link to='/home/systemprivileges/databasemanage'>数据库管理</Link> */}

            <Switch>
                <Route exact path='/home/systemprivileges'>
                    <Redirect to='/home/systemprivileges/departmentmanage' />
                </Route>
                <Route path='/home/systemprivileges/departmentmanage' component={DepartmentManage}></Route>
                <Route path='/home/systemprivileges/rolemanage' component={RoleManage}></Route>
                <Route path='/home/systemprivileges/staffmanage' component={StaffManage}></Route>
                <Route path='/home/systemprivileges/servicemanage' component={ServiceManage}></Route>
                <Route path='/home/systemprivileges/databasemanage' component={DataBaseManage}></Route>
            </Switch>
        </div>
    )
}
